<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "order_infos".
 *
 * @property integer $order_id
 * @property integer $user_id
 * @property string $ts
 * @property integer $order_type
 * @property string $order_name
 * @property string $order_image
 * @property string $order_goto_url
 * @property string $order_hint_name
 * @property string $order_day_rate
 * @property string $order_desc
 * @property integer $order_num
 * @property integer $order_money
 */
class OrderInfos extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'order_infos';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['user_id', 'order_type', 'order_num', 'order_money'], 'integer'],
            [['ts'], 'safe'],
            [['order_name', 'order_hint_name', 'order_day_rate', 'order_desc'], 'string', 'max' => 32],
            [['order_image', 'order_goto_url'], 'string', 'max' => 252],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'order_id' => 'Order ID',
            'user_id' => 'User ID',
            'ts' => 'Ts',
            'order_type' => 'Order Type',
            'order_name' => 'Order Name',
            'order_image' => 'Order Image',
            'order_goto_url' => 'Order Goto Url',
            'order_hint_name' => 'Order Hint Name',
            'order_day_rate' => 'Order Day Rate',
            'order_desc' => 'Order Desc',
            'order_num' => 'Order Num',
            'order_money' => 'Order Money',
        ];
    }
}
